import request from "@/utils/request";
export function getMenuList(data: any) {
  return request.post('/menu/list',data);
}
//根据id获取菜单信息
export function getMenuById(data: any) {
  return request.get('/menu/'+data);
}


//获取角色菜单
export function getRoleMenuList(data: any) {
  return request.get('/role/menu/'+data);
}
//更新角色菜单
export function updateRoleMenu(data: any) {
  return request.post('/role/menu/update/'+data.id,data.menuIds);
}
//保存菜单
export function saveMenu(data: any) {
  return request.post('/menu/save',data);
}
//删除菜单
export function deleteMenu(data: any) {
  return request.get('/menu/delete/'+data);
}